<template>
    <ui-main :title="$route.name" >
        <el-button @click="drawer" plain>点击打开弹出窗口</el-button>
        <br> <br>
        <ui-load-md file="forcedRefresh"></ui-load-md>
    </ui-main>
</template>
<script>
    export default {
        name: 'demo-forcedRefresh',
        data() {
            return {
            }
        },
        mounted() {
        },
        methods: {
            drawer() {
                let vm = this
                this.$bui.drawer({
                    comp: () => import('./_test.vue'),
                    params: {
                        title: '我是标题'
                    },
                    size: {
                        padding: '10%'
                    },
                    callback(obj) {
                        // eslint-disable-next-line
                        console.log('关闭的回调:', obj)
                        // 指向强制刷新
                        vm.$bui.forcedRefresh({ id: '123123' })
                    }
                })
            }
        }
    }
</script>

